package pers.wwz.study.shardingjdbc.orm;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface OrderUserMapper extends BaseMapper<Order> {

    @Select("SELECT t_order.order_id AS orderId,t_user.real_name AS realName FROM t_order ,t_user WHERE t_order.user_id = t_user.id")
    List<OrderUser> joinSelect();
 
}